package com.biz.primus.ms.oms.vo;

import com.biz.primus.ms.oms.dao.po.OmsOrder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yanweijin
 * @date 2017/11/16
 */
public interface OmsOrderResource {

	default Long getOrderId(){return null;}

	default OmsOrder getOrder(){return null;}

	default String getCode(){return null;}


	@Data
	@NoArgsConstructor
	class OmsOrderResourceImpl implements OmsOrderResource{
		Long orderId;
		String orderCode;
		OmsOrder order;

		public OmsOrderResourceImpl(Long orderId) {
			this.orderId = orderId;
		}

		public OmsOrderResourceImpl(OmsOrder order) {
			this.order = order;
		}

		public OmsOrderResourceImpl(String orderCode) {
			this.orderCode = orderCode;
		}
	}

}
